package message;

/**
 * @date Apr. 16, 2012
 * @author Francisco J. Martínez
 *
 *	Implements the pattern design singleton.
 */
public class MessagesEN implements IMessage{
	
	public static final String openedFileSuccess = "File opened";
	public static final String openedFileFail = "Opening file was failed";
	public static final String openingFile = "Opening file...";
	
	// For the pattern singleton
	private static IMessage mSingleton = null;

	private MessagesEN(){
		mSingleton = new MessagesEN();
	}
	
	
	// Methods
	
	public IMessage getInstance(){
		if (mSingleton == null){
			mSingleton = new MessagesEN();
		}
		return mSingleton;
	}
	
	@Override
	public String openedFileSuccess() {
		return openedFileSuccess;
	}

	@Override
	public String openedFileFail() {
		return openedFileFail;
	}

	@Override
	public String openingFile() {
		return openingFile;
	}

}
